package com.qf.hsr.service;

import com.github.pagehelper.PageInfo;
import com.qf.hsr.entity.ResultVO;
import com.qf.hsr.pojo.User;

import java.util.List;

/**
 * @author q
 * @version V1.0
 * @date 2021/11/16
 **/
public interface IUserService {

    ResultVO<List<User>> findAllUser();

    ResultVO deleteUserById(Integer userId);

    ResultVO saveUser(User user);

    ResultVO findUserById(Integer id);

    ResultVO updateUser(User user);

    ResultVO<List<User>> findUserByCondition(String condition);

    ResultVO<PageInfo<User>> findAllWithPage(Integer pageNum, Integer pageSize);

    ResultVO<PageInfo<User>> findUserByConditionWithPage(String condition, Integer pageNum, Integer pageSize);
}
